package com.admin.common.enums;

/**
 * 操作动态类型
 *
 */
public enum DeclareLogTypeEnum {

    TYPE_10 ("10", "新增申报"),
    TYPE_11("11", "修改申报"),
    TYPE_12("12", "提交申报"),

    TYPE_20("20", "区县退回"),
    TYPE_21("21", "区县评分"),
    TYPE_22("22", "区县提交"),


    TYPE_30("30", "市级退回"),
    TYPE_31("31", "市级评分"),
    TYPE_32("32", "市级提交"),

    TYPE_40("40", "省级退回"),
    TYPE_41("41", "省级评分"),

    TYPE_90("90", "申报状态")

    ;

    private String key;
    private String name;

    DeclareLogTypeEnum(String key, String name) {
        this.key = key;
        this.name = name;
    }

    public String getKey() {
        return key;
    }


    public String getName() {
        return name;
    }

    public static String getText(String key) {
        if (key == null) {
            return null;
        }
        for (DeclareLogTypeEnum e : DeclareLogTypeEnum.values()) {
            if (e.getKey().equals(key)) {
                return e.getName();
            }
        }
        return null;
    }

}
